Refactorings
Unit tests for git.js