Add private key decoding (RSA, DSA). Encoding TBD.

In the process I updated the library to crypto-pubkey-types == 0.3.*.