S3 HTPPS now configurable with S3_SECURE

Made HTTPS/HTTP for S3 a configurable option. Config variable is S3_SECURE.