Bringing in some parts from Metrics.

* Histogram: initial port with UniformSample
* UniformSample: initial port 
* EWMA: initial port
* Meter: unfinished