added http_put and optional headers to http_save
Added http_delete
http_put using data rather than file
Tidy up http_put
Merge branch 's3_api'