Replaced /user/login by /authenticate and ripped out sessions.
Replaced session check of resource authentication by JWT validation.
Added ngStorage dep.
Moved client-side authorization logic into factory.
Moved auth logic to a common module.
Added HTTP interceptor with some refactoring.
Added comments to auth service.
Added client-side user flush after change on server side.
Added token refresh also for non-protected paths.
Added user update event receiver.
Fixed bug in dirty user header.
Added first POC of mocha tests.
Added faker data to tests.
Added superagent plugin for global host params in tests.
Added helper for automatically creating test users.
Test helper refactoring (support for multiple users).
Cloud save.
Test users are now correctly created on setup and destroyed on teardown.
Added test for token refresh header.
Added some authentication tests.