Update to elasticsearch 1.4.0

Closes #30.

(cherry picked from commit fad6ebf)