contextMatcher option, to allow complex context matching rules

I needed the ability to set custom context matchers, to handle url exceptions instead of exact matches. So I'm sharing my changes, if you think it will also be useful for other users :]