Added ability to use a proxy server. Reference #606.