Permissions UI

Among other things, fixes #482 and #450.
Done (didn't find any CC options though):
http://bugs.jqueryui.com/ticket/10352