Implement a statistics HTTP server

Urg, we're trying to avoid that sort of thing.

We probably do exactly what you're doing elsewhere in the code.  Can you document here exactly what you're doing with an example input and output?  We can probably convert it to something standard we've already done...