added proxy config support

Added setProxy method call in DI config. 

Anything else needed for this to be merged?