Added support for self-signed certificates using MemorizingTrustManager