add basic groups api

I guess this method should be named something like ``get_group_collection``?