[Elasticsearch] Now elasticsearch sink can be registered with the repository.

Closed #5.