Improved SSL support and preferences

Allows for the trusting of self signed certificates and includes
preference changes requested in #26