XD-332: REST aggregate counter

Went through various hoops to clean AggregateCounter related code and implement AggregateCounterRedisRepository, you may want to look at the final result only.

I re-used the original bucketing code that seems to work fine in what it stores in redis, but gives weird results when it comes to get values back. Will open a story for that.