Refact

socket-server class moved in modules
Tests added

Added class for tests and socket-server tests