Totally removed dependence on OpenSSL. On OSX CFNetwork is now used instead of OpenSSL. Messy, needs to be fixed up a bit.