MA-520: When set the data forwarding URL (/cases, /forms) in commcareHQ then getting 302 error

Data forwarding URL was redirecting to login. Changing security json.
Also, a fix for /cases: check for matchingNodes

Change-Id: If93e533738848269f5694164a7a856fd5cc5613c