Add an id generator to the tooltip model

This is used to get a correct model of tooltips,
as we don't get the id of the parent class here,
we generate here.

Also, when we don't have a correct model, the
view of the tooltips in all wrong.
Merge pull request #80 from dahuapp/next-modify-tooltip-model

Add an id generator to the tooltip model