Client-side aggregation support

Introduces an `Aggregator` which allows client-side aggregation of gauge metrics.