Merge pull request #1 from jvranish/master

Fixes bug where packets containing null characters get truncated on reception
Merge pull request #2 from jvranish/master

Fixed several major bugs and added threading support
Merge pull request #3 from jvranish/master

Fixed a couple issue that could happen on disconnect