Complete rewrite of JSON-RPC

A very different JSON-RPC interface based on type classes.
How so? They seem to be relevant for JSON-RPC. Do you have equivalent tests for these somewhere? Maybe I missed them