Refactored code. Renamed js-files, better AngularJS architecture in modules and controllers. Auth factory will handle user status, now only login. Login unit tests and mocks fixed.