Packet conversion improved + test added
Fixed memory leaks in test_protocol.c
Fixed packet_read and last memory errors with it
Adding a last test to check packet validation
Connection read and write implemented