Added support for hidden apps (bug 1019249, 1019251)

isn't this going to take several minutes on prod?