[mkt-index] Upgraded search dependent libs (bug 867288)

This upgrades pyelasticsearch and elasticutils to their latest versions
and backports some legacy code so code paths don't break due to
backwards incompatible changes. This should result in similar
functionality on the new libraries and allow us to upgrade to newer ways
of doing things incrementally.