Update to elasticsearch 1.4.0

Closes #88.

(cherry picked from commit 3e0efc5)
Update branch 1.x to elasticsearch 1.5.0-SNAPSHOT