Add a resource fit predicate.

Not linked into any scheduler yet.
Please take a look at my in-progress #1185 and let's not duplicate work... feel free to take over that while I'm out if it's blocking you.