SERVER-1105 Introduce ResourcePattern type, for matching against resources in access control checks.