Added an option to extract public key DER data. Added convenience method to obtain a serializeable dictionary representation