Add a test for getOldestRequestTime with an invalid identifier
fix getOldestRequestTime to use builder ids
make findBuilderId call through to the DB layer
Merge pull request #1256 from djmitche/bug2940

Use builderid, not buildername, to look up buildrequests

Fixes ticket:2940