CSRF whitelist supports regex

Follows the discussion of #1207. However, the loading sessions exclusion feature is not a part of this.
Opening brace must be on the next line.