Add apphook icon to pagetree

Recreated PR #2008 against develop

Fixes #1948