Add a least-requested priority function
Merge pull request #1604 from brendandburns/resource

Add a least-requested priority function