Improved the login/logout system, and mirrored the returned user object (deserialized) into the root scope. We can then use this to handle the roles and authorization.