Added support for input processing. Added support for raw messages. Refactored client management by introducing a 'Peer' helper class.
Added support for connection listeners.