Correct set the pause state (#724)

Fix the following issues:
 - If you enable debugging, we eagerly set up the app services on a run request
 - If you initiate debugging while the application is already running the initial state is not valid
 - If you open an application in another tab while debugging, refresh events in this new tab cause the isolate to be destroyed
7 files changed