Add a low level git tree class and fix the root tree initialization.