WIP groups: API addition

it should be better if you pass the page as argument of function.
And then, in the Rest API you do the `page = int(args.get('page', 1))`.
Because the api should not be constrained to a specific environment.
(and also the `per_page`)