removing hand rolled long poll and replacing with socket.io