Support POST requests to S3.
Use double rather than stub in specs.

RSpec has deprecated stub for creating doubles.