hack in cert host matching
break cert matching into own method
update tests
add tests
Merge pull request #25 from chooper/fix24-check-host-match

Fix24 check host match