Rewrite TBSCertificate, using the new OpenSSL-1.0.2 API

The API around CT changed in 1.0.2-dev. Now that 1.0.2-beta3 is out, this should be stable and good to go.
Feel free to send me a CL, Quick Draw McGraw :)