Moving logging and socket.io to system