Fix to downloadfiles error handling.
Merge branch 'master' into hmac
Added HMAC authentication.