Determine scheme for http_host separately from home_url()

Tested and this indeed fixes #20 without any apparent side effects.