GIT_REPO_DIR_HASH_LEVEL variable added.
HistoryManager class added to implement git functionality.
Modified accordingly to implement HistoryManager class's functionality.