Implement a statistics HTTP server

Code that uses this structure should work correctly even if the time_point is uninitialized, when samples.size() == 0.