Add xhr-polling support.

Add some support for xhr-polling (for if you wanted to use this with heroku that doesn't support websockets for example.)