Support for big messages.

Payload of 2MB were not parsed correctly.

@kriskep I have added the unit tests to verify this behavior. Can you please check if everything works as planned? 

Thanks!

Closes #155