Update to elasticsearch 1.4.0

Closes #29.

(cherry picked from commit 4a87b6b)