(WIP) Implement DER/x509 parser

(will be rebased later)

Checked with NIST testsuite
http://csrc.nist.gov/groups/ST/crypto_apps_infra/pki/pkitesting.html

TODO: include testsuite?