Added S3 base classes and implementation of backup to S3