Ugly poc shit-ass commit but hey, it works

More or less dumped kqr/ccbamf into mah own and made it works.
Currently able to log to stdout, join a buncha channels and quit on
command. Whoopee.