Implement a statistics HTTP server

But newBucket.count <= 0 can't happen - because of line 56.  Change it into an `assert (newBucket.count > 0);` perhaps?