Split json stanzas at newlines.

The server sends a continuous stream of json objects, but
JSON.parse() doesn't work incrementally. Fortunately they
seem to be delmited by newlines, without any internal line
breaks. So split there and submit them individually for parsing.