Add groups api

Hey,

i reworked my groups api addon pull request (#2523), so that it now contains tests+docs. It also distinguishes between admins and normal users

Cheers