Fix RPC layer and implement basic BuilderJsonRpcMessageEncoder