support for line diffs. Code is a bit messy and no semantic cleanup yet.
merge conflicts from master
added semantic cleanup for line diffs
fixed reference in diff.html. Fixed infinite loop bug.
fixed broken test, fixed bug in addEdit
dont compare blank modified lines. Escape html in all text, and replace all tabs with spaces
refactored doCleanup
added explicit return statement