Fix github redirect URL if enforce_ssl=false
Fix github redirect URL if enforce_ssl=false

Also catch a possible ConnectionErrors when connecting to github.com, avoiding 500
errors reported back to the user. This happens for example if the LXC container
host disabled NAT forwarding.

Change-Id: I21c7783036af2ce3aeafd162b0299032affb4731

redhat-cip/cauth,redhat-cip/cauth,redhat-cip/cauth,enovance/cauth,enovance/cauth,enovance/cauth