http://www.thinkster.io/angularjs/wBhtRLWHIR/6-authenticating-users-with-a-service