Added traverse method, refactored other functions to use this method. Added TRAVERSAL_TYPES object. Added utility functions to Forestry.Node (isRoot, isLeaf). Added more tests.