Update to elasticsearch 1.4.0

Closes #25.

(cherry picked from commit c299ce4)