Avoid doing an import since it creates circular reference
Add doStepIf tests
Adding db tests for getBuildRequestBySourcestamps
Adding db tests for updateSourceStamps
Added a fix for AD users where they have a CN name not the same as their sAMAccount

- We first bind as the service user and grab the right CN to login for the user and then attempt a login
- This also works on LDAP