add digest support for attachment download and remove redundant decorators
Merge pull request #655 from dimagi/cz

add digest support for attachment download and remove redundant decorators