Encapsulated iosession in ircsession
changed uses of session to ircsession
changed exception handling