Changing S3 credentials providers.
Merge branch 'TMP'
Added some more tests.