Added the ability to aggregate with AVG

You can now get the mean of a metric on summary tables.