WIP
Refactor jsonrpc_pipe_cmd to add send_pipe_cmd()
Merge branch 'refactor_cmd' into unit_test