Lazily establish S3 connections

See comments.  This fixes a corner case with some AWS configurations
using S3.  Also add new s3_ssl configuration that defaults to the
current state to allow users to override S3 connection parameters.