Implement a statistics HTTP server

Formula should be `newBucket.avg = (sum + newBucket.count / 2) + newBucket.count`