Upgraded to Elasticsearch 1.4.0

Made some modifications to compile, and it worked in my environment. All tests passed as well.

(I'm pretty new to Elasticsearch and its plugin architecture, so if there's anything to improve, please let me know).