Implement a statistics HTTP server

There are a bunch of functions that take `histories& hist` as their first argument, and just mutate hist.  Aren't they logical candidates to be a method on histories?