Added strict subdomain check, domain option and tests.
Ignore port in host
Merge pull request #1 from jaclar/strictcheck

Ignore port in host
Merge pull request #2 from gabmontes/strictcheck

Added strict subdomain check, domain option and tests.