the elastic client needs to support various different http methods (get, post, put, delete)
cleanup unused imports
now using java 7 try-with-resources syntax for input-stream handling
rewrote the ElasticRestClient to use the much newer HttpComponents library, instead of HttpClient (both from apache)