Create a registry HTTP handler

RegistryHandler makes it easy to expose metrics form a registry over
HTTP/JSON. Also, all metrics now include MarshalJSON and MarshalText
methods.