user info controller. user stored in root scope. auth state fixes. redirect to /groups if logged in and accessing anonymous pages