Add Tools::TreeModel and couple of auxiliary classes