Move event handler interface to own class
Move event handler interface to own class

Out of x_connection, now in x_event_source. This separates concerns and
makes it possible to pass x_connection around as const.

jotrk/x-choyce,jotrk/x-choyce