Update to elasticsearch 1.4.0

Closes #114.

(cherry picked from commit 6c83341)