Fix warnings
Split out message parsing

Move a bunch of text processing out os the main file
Move message types out of main file
Pull out thread functions
Move irc channel to its own file
lib.rs is now purely a library interface