Refactoring.

* app.coffee now exposes the databaseProvider, app and passport. This allows sub-modules to require them, instead of having them passed to it.
* Created a new folder and basic structure for the api module.
* The /api/groups/ now has a param `onlyMine` that returns only the user's groups.
* Removed the Authentication class and replaced it with static methods, as having it as a class made little sense.
* Fixed the weird scope hack for the login route by instead having the route require app.coffee.
* Added databaseUtil.coffee, static methods for prettier db handling.
Newlines at end of files
Moved authentication/util to utils/routeUtils