Merge pull request #7 from andrelevi/setting-up-states

Add Angular routing
Add token based auth
Fix location index serialization
Merge pull request #10 from andrelevi/master

Replacing event emitters with use of promises.  Cleaned up some bugs.
Add registration API responses
Merge branch 'token-authentication'
Merge branch 'master' into development

Conflicts:
	Gemfile.lock
Fix sessions API responses
Fix bug with overzealous API auth settings
Fix prob with auth
Merge branch 'development' of https://github.com/licyeus/deglassified into development
Added service for user account sign in.  Now need to store token.
Added localstorage for storing session token.
Added ng-switch for sign in.  Sign in and sign out working.
Added an ng-switch in modal for login-signup and dashboard.
Switched over to cookies for storing session token.
Fix login failure messaging
Added separate sidebar and modal controllers.
Removed login state, as it was creating bugs not worth the benefit of having a login state.
Got sign in working correctly.