Add S3 bucket utilities

Utilities for uploading files to S3 buckets. Part of #868.
Can we call this `set_s3_config` or something instead? `mk_config` implies that it returns a thing rather than modifying global state.