Allow toplevel-aliases

Modify registerCommands(Object) Method to allow toplevel-aliases.