80/mocha

This PR includes a restructure of controllers and modules so that they may be tested in a cleaner way as units, with Mocha (and Chai).

Next step in this issue (#80) is to do this for directives as well, and to write more unit tests for these parts of the code. This PR only includes a couple of tests for ApplicationController.