Refactored NodeGitRepo to be a "class" rather than a single object.