minor refactor for AuthenticationController#login
refactored out clear_token, added logout function
added services module and AuthService.js