Update app queue to use Elasticsearch (bug 1066372)

Any way to move that inside `.get_pending_queue()` ? I regret not doing that when I refactored that code, I think that'd be much healthier to do this there. 

Bonus points if you can even figure out a way to only deal with `use_es` in the helper and not in the view.