client: read proxy setting from environment

I should stress I know nothing of go, but I've tested this on my set-up and it works.