Core Foundation version updated to use Security.framework over deprecated openssl

I've adapted the new Cocoa code from @mwaters branch to update the Core Foundation version. It replaces openssl functions with those from Security.framework.

It seems to work alright and I've added a couple more tests to the tester tool to check both valid and invalid licenses.