Wrap GitCmd process into a dedicated ActionResult

It is best to write to the output stream in a ActionResult, rather than directly in the controller.
This provides greater clarity in the controller too.