Added endpoint option to S3

This should be the final step in resolving #90