[tcpclient] added reconnect functionality;
[apiclient] make use of reconnect;
[apiserver] proper shutdown;
Merge branch 'feature/cpp-engine' into feature/gcc4.7-support

Conflicts:
	Core/src/headers/apiserver/TCPClient.h
	Core/src/sources/apiserver/ApiClient.cpp