add task to get all testable pull requests

This commmit adds a rake task that can be used to
get a list of all testable pull requests.

it also adds a more general purpose lib that supports
this functionality.