Emit 'resize' and 'input' events.

Also emits 'chat' and 'chatstate' events, which are automatically bound
if `sendChat` and `sendChatState` methods are provided.

Adds event listener for the textarea input event, to capture non-typed
input (cut & paste, etc).
1.1.0