Replaced groups by roles.

The module is now using roles instead of groups. A user can have
multiple roles. Fixed the auto login functionality using tokens and
cookies.