update to be in sync with original plugin, and versions of ElasticSearch since (up to 1.0.0.Beta2)

incorporated changes made on the main original plugin, and updated to all major usable versions of ES since