Add a resource fit predicate.

Not linked into any scheduler yet.
Ok, I'm going to defer this to a later CL.