add proxy and no proxy support

look at env vars to choose to connect direct or proxy