Reverse order of permission attachment registration

This makes things work more like how PEX expects them to be
Also fix PermissionList parent-child tracking.
spaces->tabs