triggerstep sets wait_for

The Trigger step now properly sets the buildrequests' wait_for column.

This branch depends on a previous pull request (#829), which fixes a real bug that was exposed by my "make it less fake" patch below.

I'll squash these upon request, but I've verified that tests pass at each step, and it may be helpful for you to look at the individual patches during code review.