Update to elasticsearch 1.0.0.

Closes #24.