Update to use Security.framework over deprecated openssl

Core Foundation implementation adapted from updated Cocoa version.
Return tabs to spaces as per original style
Remove stray CFShow
Handled a couple of compiler warnings.
Switched of gradient painting in table view due to crash.