Initial implementation of S3 snapshot/restore repository

Depends on https://github.com/elasticsearch/elasticsearch/pull/4437