Fix a bug in sendPackets and recvPackets where we were not checking the actual amount written/read.
In the case of recvPackets this caused us to not fully read a payload, and cause our interpretation to get corrupted. In my case, causing gigabytes of memory to be allocated by go, and resulting in a crash.
Also update debugPrint so that when there are multiple wireProtocol's running we can identify which log statements are related to each other.
Merge pull request #8 from fromkeith/master

Fix reading and writing to the wire.