Added an updated working set of intern unit tests, updated logging and added some additional deferred support along with unloadApp support to unload the app.