Use two threads for xhr-polling, one to send one to receive.

This fixes some bugs I was experiencing where the server (Node.js) seemed to be discarding responses if it didn't have someone to send them to.