Add register public key feature (from irssiconnectbot, modified)