use generic function to authorize a proxy request

The authorize-proxy-request function is now a generic function
so users can get a hook into the proxy authorization process.

<documentation>
Details on the generic function have been added
to rfe12300
</documentation>

Change-Id: I122ceda2ca23805c2ab42301ff2a5ad20c9eca72