API changes in ES v1 final

Elasticsearch v1.0 contains breaking API changes which are not handled by the current collector.

These proposed changes work with the released version 1.0 and any previous working 0.x version.