Added support for hidden apps (bug 1019249, 1019251)

Maybe add a comment below explaining that it's called "waiting" purely for backwards-compatibility reasons ?