lightirc: multi server support

* some other bug fixes as well