Internal: make sure that internally generated percolate request re-uses the original headers and request context

Closes #7767
Aggregations: More consistent response format for scripted metrics aggregation

Changes the name of the field in the scripted metrics aggregation from 'aggregation' to 'value' to be more in line with the other metrics aggregations like 'avg'