record entitlement context for REST web requests, and log more info of web requests