Some cosmetic changes.
Change SSLPeerValidationMode into an options enum.

This enables more fine grained control over the validation process, so that for example a valid and trusted certificate is required, but without validating the peer name.