See last commit
Added registry of commands and permissions.