Changed server->client events from pipe-delimited Strings to JSON. Added support for add event listeners.