difftool/mergetool: refactor commands to use git-mergetool--lib