Adds support for S3 scheme-less URL generation

As-mentioned-but-lacking-a-folllow-up-in: https://github.com/thoughtbot/paperclip/issues/1098

I cherry-picked the commit without any difficulties.