Send success/fail state, allow interleaving, and indicate end of output. Add framework for supporting non-human-readable output in commands. (cherry picked from commit 508c9d2fc1b20dc2cb40df533e823e1dfe2becc3)
Send success/fail state, allow interleaving, and indicate end of output. Add framework for supporting non-human-readable output in commands. (cherry picked from commit 508c9d2fc1b20dc2cb40df533e823e1dfe2becc3)