add poll_branches.py

this script runs forever, checking heads of all branches and
triggering a jenkins build.