index.html == built and dev == full
return the deferred's promise rather than the deferred
make app.js 'dumber' - move business logic to 'MainLayout'