Binary protocol

Implemented basic version of the JSON protocol using raw TCP socket for testing