Add query parameter/header support for S3 signed URLs

Fixes #252 

S3 tests still pass (others had failures before I started!)