new server class - functions/socket.js

will handle creating sockets