Fixed Byte-order reading.

The functions would fail on bytes that were above 127.
Item-loading now checks for weird bytes.
cByteBuffer has more self-tests.
Fixed client packet parsing.

When the packet wouldn't fit the current buffer, the server would mis-parse the next packet. This was the cause for #541.
Also modified comm logging, now each direction can be turned on separately.