Rewrite sshkey security plugin

Added functionality to send the public key from a node to a client in a
request.

Added tests.