Added IP Whitelisting middleware and tests