Remove unused router, add undo/redo support for adding/removing ports on formula nodes