Public api activity [WIP]

:construction: 

requires https://github.com/owncloud/core/pull/9412
No, the function is used multiple times :-O
https://github.com/owncloud/activity/blob/master/lib/grouphelper.php#L76-L88

Adding a second function: 1 with true/false and 2 with the int seems pointless to me