Fixed stream2 implementation.

The fix for the stream2 implementation I provided. I am sorry I did test the previous implementation on Mosca, I could have catch the problem earlier.

That implementation was clearly broken, it could not parse the messages with length longer than 1 byte. Now it works correctly.
You should merge it and publish an updated package, and possibly yank 0.2.5.
I'm so sorry :sob:.

I also fixed a bug in the server implementation.