add support for custom SSLSocketFactory

Can be used for pinning, self-signed certificates, etc.
Fix <module> tag to line wrap.
Even cleaner wrapping in <module> tag instructions.