Refactored X509 code to consolidate like functions, eliminate many buffers, etc
Added function BIO_to_Buffer to consolidate copy BIO data to buffer.
Moved get all data and certificate to end of function.