almost complete rework of sendprop flattening

It doesn't suck! And the tree is gone.