_CommandManager : implement `getCommands` and `removeCommand`

pretty crazy stuff but we are following the javascript impl for now...