Update app queue to use Elasticsearch (bug 1066372)

Would prefer if you used the keyword argument, although I admit `use_es=use_es` is a bit weird. What do you think?