the irc_ctx now contains a pointer to the associated connection object.
This allows us to emit a signal once an event is received.
(need an object to call the signal method on, but the events need
to be handled in static methods, since c-function pointers are required
by the library)

connecting to an irc server seems to work, but the application currently
crashes with a segfault shortly after the connection was initiated