moved chunked() from ResourceHandler to JSDInterface because chrome
can't handle it that the response is set in chunked mode and then
nothing is send over.
Now chunked() is only called when there is actual a message or else just
ended()