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>
`@blueprint.route('/leave/<int:id_usergroup>/user/<int:id_user>')`