Fix committing, commit on save

From now on saving the commit message file will trigger
the committing and close the editor in the process.