Validate URLs

As well as validation to check a the URL format, for a certificate to be extra reliable, we want to check that URLs actually resolve. 

As well as client side validation, I've also got server side validation as a belt and braces exercise.