fix various inline diff display issues.

- make the inline diff aware of whitespace changes
- added a test page to verify the diff output stays the same
- line selection for stage/unstage in commit dialog