Improved native application runners so that they support listeners for lifecycle events and can work for more than long running activities.