Add a loginCheck handler

- Create a temporary db record creation functionality, to be used for tests
- Test a few database interactions, devise a way to test the rest
- Minor fixes all over the place
- Introduce a before_test thingy, where you setup the testing environment
- Add a dispatch message function to controllers
- Add Authenticate methods to both User and Daemon
- Add AuthFromSession helper function to be used for Users
Merge branch 'master' of https://github.com/GU-2013-TEAM-M/eos