Add server-side events and socket.io