Add HostAlgorithm class for host key authentication and possible for certificate authentication in the future Refactor public/private key logic