Refactering LibBlackTortoise to merge LibGeppa.