really simple tcp server using json for packets.