[WIP] Upgrading Elasticsearch (bug 1013874)

Ref https://bugzilla.mozilla.org/show_bug.cgi?id=1013874

Not ready for review.