Seamless socket.io and ajax long polling fallback.