Adding poller.js. Currently incomplete.

Just in case I decide to continue with the rest of this.