Changed group- and permission system

- Users can now be in more than one group.
- Groups can now be parent- or childgroups of other groups. It's
possible for groups to have multiple parents and multiple children.
- Checking for permissions is adapted to multiple-groups.

NOTE: these changes require the new database-version.