updated mock-backend for test with new API endpoints, re-enabled karma
fixed login & refactored module structure
Merge pull request #3 from realizeapp/adam/dev

testing updates, login/register fixes, refactor