Move IP Whitelisting configuration middleware into core