process: improve several doc-strings
magit-run-git-with-editor: move and add doc-string
magit-git: new function

Also add variable `magit-process-raise-error', when non-nil
`magit-process-finish' raises an error instead of just showing
a message, in case Git exits with a non-zero status.