refactor: Move the content of HistoryCommand._hcmd_undo to BaseCli.history_undo_transaction.

Conflicts:
	dnf/base.py