This reverts commit c7823aff1a.
This “fix” introduced a new problem: when navigating in the
back/forward cache, the EventSource connection would not resume.
This should fix occasional hangs when navigating between pages.
I did not expect this behavior from browsers. I would have expected
all pending requests of a page to be terminated when the user
navigates to a different page. Instead, one needs to explicitly
close() EventSource connections.
Create a /log endpoint for streaming stdout/stderr logs for processes.
Replace status page stdout/stderr to call into /log to stream logs and
live update page.