Aggregations: Scriptable Metrics Aggregation

A metrics aggregation which runs specified scripts at the init, collect, combine, and reduce phases

Closes #5923
@jpountz not sure I have a use case.  It's another thing that was in @imotov 's scripted facet. Looking at what you can do with the context it looks about as dangerous as providing the client so maybe it too should be removed?