Move irc settings stuff to a different file.
Lots of cleanup + refactoring.