move app init&forget handles before node init

this enables running pure nodejs apps like mocha and quitting
the app once it finishes
Merge branch 'master' of github.com:svalaskevicius/qtjs-generator