Add ability to send S3 region to the upload

Add ability to set S3 region such that it is possible to manage AWS virtual-hosted–style and path-style requests