Setup an elasticsearch client to query indexes from rails

This issue is part of the roadmap laid out in #3711 (comment 224977777)