Add enums for some event types
Implement RefactoringHistoryDebugListener, fix some issues