Support host name header.
Better credentials support.

Conflicts:
	README.md