Port the statistics-aggregating portion of metrics-web
Provides data for graphs on the metrics website. Once we have that we only need a new metrics website before we can kill metrics-web. Karsten mentioned on #7987 (moved) that this is in progress.