Fix include/exclude filters to consider every new commit

Currently the git-plugin only checks the head revision on each candidate branch against the include and exclude filters. This can lead to it failing to trigger when there are new commits that should be included, but the head revision contains only excluded changes.

This patch changes polling to test every commit since the last build for changes that should be included.

Why "build2" ?