Automatically set the Host header from the URI

Closes #32.