Cert loading from PEM & restructuring 

- Added cert loading

- Extracted X509 tests
Merge pull request #85 from vhbit/x509-load-pem

Cert loading from PEM & restructuring