file download change

The code for file downloads was in admin. It's been moved to controller
so it can be used in entomologist as well as storefronts.