Added support for "\r\n"-messages from Streaming API.
Various concatenation-related fixes