Add read retries to avoid problems related to s3 eventual consistency

Rebase #418 and fixed style violations.

/cc @dmp42 @pchaussalet