Introduce an ActionFactory in ActionRegistry
Refactor command stack tracking in undo/redo actions
Enable context injection in ActionRegistry creation