Make Agents more configurable.
Several fixes for Websocket implementation.
Fix potential null-pointer exception in RPCTransform.