Implement a statistics HTTP server

This should not be a global it should be a member of the `MetricsImpl`. Rationale: The contents blob should only be processed if we start up the metrics server (and not when we are running unit tests).