fix 5110: ensure _doLaunchAfterServerReady uses the document that was current when the GoLive command
fix jslint errors
Merge pull request #5268 from adobe/jhagenst/fix-5110

fix 5110: Switching to other file while Live Development is connecting causes it to fail