move server to configuration folder and create socket.io configuration