Add mergeIntoHEAD() function
Add readTree() function
Add detachHEAD() and checkoutOriginalHEAD()