rewrite processDiff using xpath

this is to ensure it works with wikidiff2 as well as wikidiff1
some minor styling changes
also arrange the del and ins items by occurance in the diff.
order is important

Change-Id: Id644ea9734bdbda6627af23312a78e60e7a728be
Merge "rewrite processDiff using xpath"