Added changes from the code tools/wiki: timeouts, logging, chunked_encoding
Fixed comments
Replaced ValueError by BaseError
Adedd default value for storage_class
Added comments
Added tests