Add download counts into elasticsearch

Total download counts are now in elasticsearch. Along with some changes to the integration that made things simpler. It will be possible to implement sorting and boosting on download counts.
Rather than sleeping for a second here, I'd use a retry strategy, similar to what's already in stats.CheckCounterSum, so that we have a chance of succeeding earlier and, if implemented as a separate helper, it can be reused elsewhere.