Add length 40 constraint to Builds.ref

- Many changes to tests to account for new constraint in test data
- Removed undocumented '!buildme' feature from PullRequests controller
  since that was superceded by build_pull_requests option on Repository.