adds downloads service logic and tests

adds download counts to homepage
adds totalPackages method to couch
reworks download functionality

adds downloads counts to package pages

adds error logging to downloads

fixes tests in company and registry facets