The first part, doing file compare in a plugin works.

Keeping open for second suggestion.