Made server clean up dead sockets and restructured folder.