Fixed circular dependencies on app.coffee.

* The databaseProvider instance is now set on the req object for each route,
instead of having routes require app.coffee.
* The app should now once again be able to run directly from coffee, by using `coffee src/app.coffee`.