Allow prioritiziation by matching against path

This is obviously not perfect, but it's a good start that gives us a foundation
to build on for more prioritiziation options in the future.  Let me know if
anything is missing or not up to par.



I get the need for disambiguation here but the `My...` prefix feels a little nasty. How about calling the variable `Pattern` and the function `CompiledPattern` or something like that?