Encoder/decoder for nydus, a simple RPC/PubSub protocol designed for use over WebSockets.