Add support to collapse and expand a diff

This is especially useful in the history view for large commits with
long changes in many files so that only the changes that are of interest
are shown.
Merge branch 'refs/heads/master' into issues/181
Add pull request #181 to the change log
Add animations to collapse/expande diffs
Merge branch 'issues/181'