function register(command) {
  commands[command.name] = command;
}
Register a command with name as a key
@param {Object} command - {name:{string}, execute: {function}, undo: {function}}
@param {string} command.name - command name
@param {function} command.execute - executable function
@param {function} command.undo - undo function
@ignore