Rework how TreeT is done into something *much* simpler

Further, SHA is now a type within Git.hs, and CmdLine.hs no longer uses
IORef.
Bump version to 1.3.1 and deprecate gitlib-utils
Optimize queryTreeBuilder and add several more tests
Downgrade version dependence for hashable to HP