Initial refactoring of permissions
Refresh the home tab when changing the permissions
Permissions UI and per-application configuration