The AWS log upload module does not behave like the rest of the
modules: it does not set CORS headers, which means that logs will
not be usable in the Zuul web UI without additional manual
configuration. The other uploaders all set CORS settings
automatically.
Correct this in the same way that we do for other clouds.
Additionally, if an S3 bucket is created outside of us-east-1, then
objects in it must be addressed using the bucket name as hostname,
rather than the bare host s3.amazonaws.com. Update the returned
URL to use the bucket hostname. This works as well for buckets in
us-east-1.
Also, fix the command line test invocation.
Change-Id: Id92f3cf506b442d0ee5932c6e9d931df19c2cc71