Add much more comprehensive validation of domain names presented in X.509 certificate.
Move certificate verification into check_cert.h and cert_check.c
Minor tidy up
Minor fixes
Ensure ARGV0 is set correctly for agent-auth