Add dumppubkey RPC command.