Add support for users to belong to one or more groups.

Correct relationships are now stored in groupsUsers table.