Add feature to generate key pairs

I have adde functionality to generate RSA keys outside of the web crypto api, and thereby also enabled us  to store the private keys between sessions. The keys have been tested and works in  ``openssl``, but since we have not yet implemented the encryption decryption functions in Crypto, I could only test weather or not we could import and export.