Updates to app.js

Refactored the “state” into a factory provider, started to hard-code
the routes.