add long-form version of proxy option
validate proxy setting, add some tests to ensure invalid proxy settings are caught.