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.
No I moved it's methods into the store to stop me having crazy circular references for no good reason.