master
AuthenticationService
function AuthenticationService($http, $q){ this.authenticate = function(username, password){ var deferred = $q.defer();