reworked jsonrpc server.

added introspection
all calls and responses have now param validation