Use current host name for redirect url
Merge pull request #10 from guywithnose/master

Use current host name for redirect url
Fix HTTPS check.