lightirc: lot of updates

* cleanup code - follow some Lint recommendations
* start using my own library as a dependency
* fix a few NPEs as always and fix some more bugs
lightirc: fix bugs and clean code

* fix bug where unknown event may disappear
lightirc: more code cleanups