Add a discard line button in the commit view

Added a discard line button in the commit view. I reused the code for the staging and the call for the existing discard button for the whole hunk, so this is all contained inside the commit.js for the view.

The code manipulates diffs text in js, which I find slightly terrifying, but it seems to work fine.

Fixes #377.