Fix loss of data in GetLong/PutLong
Add support for handling alternate max packet sizes
Remove the depacketizer thread
Remove decoding thread like in Java common