cleaning up $AppUI and $perms usage for v3.0
converting to use the hooks properly;
used the constants in the routing
updated docs for v1.3, which is this code