s3: support for provider-specific options

Re-submitting functionality from https://github.com/ansible/ansible/pull/6872 to new repo.