Added `connect` and `disconnect` events.

These can be used together with `input` to build session based
interactions for TCP clients. There is a new sample `parrot` that
shows how to use this feature.