Stricter SSL settings: Fix trusted certs, ciphersuites, misc options.

Sadly, even with the all the correct options set, some PHP installations
just don't do SSL properly.  You can run the included test program to
see if your PHP installation performs some basic SSL checks.

Thanks to Anton Mityagin for figuring all this out.