Moved client socket handling stuff to separate source files
Moved server socket event closure stuff into the module