Added support for hidden apps (bug 1019249, 1019251)

I wonder if we still need all this hackery with the post requests tasks stuff. Might be worth filing up a follow-up bug.