json-rpc impl. initial commit