Add COWMetric and do some code cleanups.
Merge pull request #37 from prometheus/cow-metrics

Add COWMetric and do some code cleanups.