Implement a statistics HTTP server

quibble: indenting!