some code cleanup, ensure response always passed to app finished event
Merge pull request #41 from cspray/app-refactor

some code cleanup, ensure response always passed to app finished event