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.
It would be nice to explain the reason why we are ignoring the revision and only update the last entity here.