adds whitelisted_patterns configuration option

This option allows users to configure patterns which will indicate that
a given request should be whitelisted. These patterns will have priority
over the whitelisted domains.