Add listing of remote branches
Add qGitEnsureValue() for checking non-NULL return values
Inline return code checking