Fix client reconnecting too many times
Rewrite IRC relay.

Now reconnects on both sides.