lightirc: cleanup code and start adding more prefs

* cleanup code a lot
* add part reason and quit reason prefs
lightirc: multiple updates

* fix a autochannel join NPE when the channel name is edited
* cleanup code
* few other things
lightirc: minor bugfix
lightirc: cleanup