Permissions UI

Among other things, fixes #482 and #450.
I'm pretty sure I tried it and resorted to this after it didn't work (I enable tooltips on document so you'd have to destroy/disable them on the document as well, but then they don't work). I will add an additional line of comment explaining this. :)