Add and use `script-base.js`
Save `appName` and `appDir` as cfg options
Remove unused code
Add `view` subgenerator.

* Refactor a lot of the generator to accomplish this!