Update to elasticsearch 1.3.1

Related to #23.

(cherry picked from commit a5ece71)
Update to elasticsearch 1.4.0

Closes #25.

(cherry picked from commit 6e35c13)