create base data services as getMessages, postMessage, connect to io.socket connection and some improvements on client side