Use ltree extension for node_path
reinstate calculate_node_path
Move basenode initialization parts to better places