Corrected paths and made versions.xql working with new repository layout (taking paths from app.xqm).
But this version handles only shared records, it will not handle user collections.
Changed order of arguments to make it consistent with XQuery diffs.
Added links to new diff presentation in revision history window.
Links to both solutions are present now.