Gridproxy allows delegates to be set for login request and login response, but setting them in a plugin prevents them from executing. The attached patch passes the existing delegates when setting new delegates so a chain can be executed, giving plugins the ability to access login request and response data.
This patch also changes activeCircuit and KnownCaps from private to public as it is common for user plugins to access and modify these variables.