Group activity aggregation

Moved group activity aggregation into the functionality plugin.