Clean code. Move some function from jrpc_server to jsonrpc-c.