Adds tests for basic SSL pinning.
Fixes AFSSLPinningModePublicKey on OS X.
Adding tests for trusting derived certificates.
Merge pull request #1047 from OliverLetterer/ssl-pinning-tests

SSL pinning tests