Update to elasticsearch 1.4.0

Closes #38.

(cherry picked from commit 7ee03e7)