Add unit tests for MainCtrl and API.
Merge branch 'master' of https://github.com/AdiedX/Crimen