Allow fetching a build by pull request number

I'll be creating a corresponding `travis-api` PR soon.