Ref T2794. Currently, the Phage agent waits until the remote command completes before sending output back to the controller.
Instead, stream output continuously.
Also work around some kind of weirdness with error reporting that I hit but couldn't immediately figure out (maybe PHP7-related?).