Change the implementation to use elasticsearch-ruby

Also adds ssl and basic auth capability to the plugin