Added message length

All messages are now preceded by an unsigned short that designates the
number of bytes to follow