Adding duration historgram counter and wiring it to the stats
Refactor metrics, can now expose them as /debug/metrics