Fixed registration of WE commands with permission registration. Fixes #1085.
Slightly improved PermissionsListWriter.