Added Authentication interceptor to intercept 401 statuses. Upon a 401 an 'event:unauthenticated' is broadcasted from rootScope. Main application listens for that event and redirects to /login. UsersService, instead, logs out. Modified userPanel directive to listen for user:unset and act accordingly.