Moved some more code to Gateway
- Getting the groups avaiable for a user
- Check if a user is an administrator