As promised, here’s an updated patch for…

As promised, here’s an updated patch for my MPTT implementation.

As I warned with previous patches, it’s only been tested on a relatively default install (with all sorts of artificial data of course) on my development machine.  Please do not trust any vital data to it just yet.  I still need to clean up some of the code I think.

In any case, feedback would be appreciated, especially on ways to prevent data corruption (as was addressed in the IRC meeting).