Fixed potential NPE's for usernames

Added some null checks for getting username of the active user.
Activated session support through Atmosphere
This makes sure all users get a sessionid before logging in,
allowing anonymous users to browse the backlogs without any trouble.