app.js and module generator re-factored for ui.router