Implement a statistics HTTP server

Yeah the whole thing needs to be reformatted in the Allman style
http://en.wikipedia.org/wiki/Indent_style#Allman_style