Bugfix for methods that supply a resource instead of bucket and key
Update sha1.js to 2.2