Stream related bug where wrong callback was used.

In summary the cb passed is invoked each time a stream.write happens
which in this case led to the stream attempting to respond to a HTTP
request for each write.

Now only responds once all diagnostic commands return thier output.