Use git_raw as much as possible for commands

A lot of the commands that are implemented through code can be
replaced with some git_raw calls instead. Less boilerplate in code.