Making authenticated requests to REST Server using JSON with Services API