Permissions UI

Among other things, fixes #482 and #450.
Should we use jQuery enable here?