JCR-3651 S3 Datastore implementation

Fix: Incorporated Thomas's comments at https://issues.apache.org/jira/browse/JCR-3651?focusedCommentId=13751000&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13751000