restructuring files. socket.io beginning to work