Adding dependencies

Adding dependencies between classes (reader needs events ...)
Add some IRC exceptions
Add simple parsing code for messages