Fix cert checking in iOS 6 and some general cleanup.
Merge pull request #39 from stripe/phil-cert-ios6-fix

Fix cert checking in iOS 6 and some general cleanup.