Complete rewrite of JSON-RPC

A very different JSON-RPC interface based on type classes.
Yup, noticed it. I will update commit soon.