Fix line endings to Unix.

Standardise indentation, spacing and braces.

Allow overriding the list of buckets, default to all buckets.

Hide a lot of unwanted output from Curl.
Merge pull request #342 from aptivate/master

S3 storage plugin fixes