Append port number to Host and Origin header, only if specified in the url and non-default
whitespace correction
Add tests around host and origin headers
Merge pull request #214 from breedx2/header_ports_optional_when_default

Append port number to Host and Origin header, only if specified in the URL and non-default.