Allow toplevel-aliases through modifications in CommandHandler and CommandManager

Since I needed "toplevel-aliases" for my current project I experimented a bit with your code yesterday, and came up with a solution to allow them. It's more of a hack than pretty code, but it works.