Add redirect and env proxy support to docker login

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
Merge pull request #6170 from vieux/redirect_login

Add redirect and env proxy support to docker login