Extend rpc_exec() to allow feeding childs stdin via callbacks, allow finish callback...