Permissions UI

Among other things, fixes #482 and #450.
There should be probably exactly on here, no?