userblacklist: added check_whitelist function

- check_whitelist(string table) finds the longest prefix that
  matches the request URI for the given table and returns true
  if the match is set to whitelist