Allow aggregation method other than average

Allow to specify metric values aggregation method other than averaging by adding an 'aggregate' query param. Possible aggregation methods are `avg`, `sum`, `max` and `min`.

The default is still to average.