separated main read loop out, added tcp keep alives
adding nickchange when nick is in use