Added capability to read variable length messages.
Messages are now sent or recieved in three parts.
1. msg type ('TEXT' or 'FILE', to be added later)
2. msg length (32 bytes)
3. Actual message