Compatibility with Elasticsearch > 1.0

I've tested these changes against Elasticsearch 1.2.4. The GC initials stuff doesn't seem to be necessary any longer, but I don't know how it looked in older ES for comparison.