nine: start testing the buildrequest fakes

This is the same content as https://github.com/buildbot/buildbot/pull/819 , but based on the nine branch.

I merge that branch to nine, fixing the conflicts, and add one minor fix on top.

All tests pass, except for github tests which i fix here:
https://github.com/buildbot/buildbot/pull/821