Implement a statistics HTTP server

Storing the resolution in the history struct is not necessary, it should be passed in as a parameter.