Created basic IRC functions

Should help elsewhere, also started cleaning up main(), but couldn't
connect to Rizon, suspicions that I have to register.