refactor(server) createServer, createRedirect, addSockets, logServer