spacing cleanup in Application and ScriptEngine
some application destructor cleanup
Merge pull request #1822 from birarda/cleanup

application destructor cleanup, spacing cleanup