Keeping track of host names in requests.  Added a function for composing requests.