Code refactor.

* Created separate packages for context and event.
* Created separate event handlers instead of cramming everything inside
  DebugEventSetListener. It simply delegates to appropriate event
  handlers - ThreadEventHandler and DebugTargetEventHandler.