code: function removeItemsFromFront(system, front) {
    system.commands.getAll().forEach(function(command) {
      if (command.front === front) {
        system.commands.remove(command);
      }
    });
  }
docs: Go through all the commands removing any that are associated with the
  given front. The method of association is the hack in addLocalFunctions.