Added support for hidden apps (bug 1019249, 1019251)

`waiting` was kept to keep backwards compatibility with the API. I have a TODO to change it to `private` for v2 of the API.