groups: port missing functionality

* Adds implementation of user group manage function.

* Adds filter on list of group that user can join.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>