Added a few more event handlers for channels.
Added a fix for the odd connect/reconnect behaviour and inconsistent disconnect mechanism.