Permissions UI

(If you want, you can go sometime around all code and make all one-line comments with dot at the end. I do not mind. Just that it is consistent.)