Add rolling histogram and factor out anomaly detection

`golint`:

    counter.go:76:2: should replace c.values[bucket] += 1 with c.values[bucket]++