Move activity aggregation meta handling out

Add hooks for our other meta plugins to tie into this plugin. Other
minor cleanup/simplification.