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.
frankban wasn't keen when I did a similar thing.
https://github.com/juju/charmstore/pull/248#diff-for-comment-21321708