JSON-RPC 2.0 client and server that communicate via postMessage