Add support for batch JSON-RPC.
Add test/documentation for JSON-RPC (simple and batch).