Fixed S3Registry to use http or https based on the s3 configuration settings.