Update WikiXD, fixing a few bugs and adding features (recent changes, history, diff).
Also update the diff engine's code to match the new PHP standards.