Added KeyUtils class for creating and converting keys. Also made KeyType and KeyPairType.