Add configuration option to force path-style access with S3.

This change makes the use of path-style access an explicit option for the S3 client. Currently it is possible to force the use of path-style access by using an IP address in the endpoint URL, this change allows users to better control the behaviour.