Added a fix for anonymous S3 requests.

The added ``time.sleep`` is needed in the tests to let the ACL take effect. Without it, the test consistently fails for me.
Merge branch 's3-anon-fix' into develop
Fixes #1988 & #1992.