Diagnosis, treatment, and prevention of herpes