Merge "Make AllAppsEntry and exit events optional." into tm-dev