Working version of Jenkins build poller.

Added code to poll build statuses from Jenkins.