Fix XHR server side to actually write a response for chunked output.
Merge pull request #1297 from w3c/jgraham/chunked_fixup

Fix XHR server side to actually write a response for chunked output.