XHR-polling support to socket.io

This patch fixes issue #35