create internal X509_common
rearrange helpers into the common module
Merge pull request #13 from mirleft/common-things

Common things