Adds beginnings of event handling to debugger engine.