Emitted kommitted event from controller when a commit is done.
Listened kommitted event to remove committed files and empty diff pane.