RPC over arbitrary streams for Node.js and a browser