S3 client in Go extracted from http://camlistore.org/