implement streaming requests

The good news is that apparently the 'close' event fires just fine when we are *not* in dev mode. I'll have another look at this tomorrow, taking that into account.