Aggregations: Scriptable Metrics Aggregation

A metrics aggregation which runs specified scripts at the init, collect, combine, and reduce phases

Closes #5923
I think it would be nice to detail a bit more this example to explain what the data looks like at each stage, with example documents and eg. 2 shards.