Apphook autopublish

- auto publish apphook changes
- adds a pending publisher state for tree view
- apphook icon in tree view links to advanced settings