Add support for custom matchers

We keep some URLs that we want to CDN-ize in custom data-attributes. To support that, we need to add a custom matcher. This adds support for that.