Key pair refactoring
This branch refactors the public and private key representations so they can be used anywhere without needing a key parser. Simple classes for signature and agreement keys, similar to the existing SecretKey class, can be instantiated directly. Keys received over the network are validated as soon as they're received, so keys stored in the DB don't need to be parsed again.
Edited by akwizgran