[apiserver] added basic TCPServer and TCPClient;
[apiserver] added JSON parsing server;
[apiserver] cleanup of all the code which used it;