Implemented commit dialog gui.

Also factorized the diff highlight code in the DiffedEntry() class