MODULES-1571 Add Git Facts

Add some tests for the facts, and refactor the facts a bit to make them easier to test :+1: 
i didn't know hub was a thing. heh.