Implement a statistics HTTP server

This whole little piece should be abstracted out - except I'm morally sure that we already have something that does this in the codebase and we should re-use that.