Configurable S3 endpoint to avoid 307 Temporary Redirects causing problems with Google Chrome's XMLHttpRequest handling.