Initial Amazon S3 support. Needs tidying.