Allows specifying an endpoint other than the default s3.amazonaws.com

Hello

I added the ability to specify a S3 endpoint when the connection is created. This allows connecting to different S3 zones  and/or to services emulating the S3 interface.

Cheers!