groups: port missing functionality

* Implement user group manage function

* Add filter on list of group that user can join.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
I passed the title and action string like a variable to be able to use this template to "add new group" but also to "manage the group".