Some permission node-related fixes. Also, new way to register commands!