Update app queue to use Elasticsearch (bug 1066372)

To do that I'd have to do the `QueuedApp` wrapper into the helper too it looks like. Which seems like it'd be ok. It can do the sorting too if passed maybe? I'll play around with that a bit. (Though I might do that as a separate commit outside of this PR to keep this clean)