BUG: fix initialization of proxy from config parameters

Re #41, fix suggested by @dommcintyre, see discussion here:
https://groups.google.com/d/topic/xnat_discussion/bz4wAmtmDZA/discussion