Apply minimal version of long-polling fix from Standard8
Add more logging to the /stream endpoint