Implements acts_as_tree using the high performance closure tree algorithm, with support for polymorphism and "find_or_create_by_path"