groups: API addition

* Adds API and REST API for the groups.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>