Centralized link to extended tooltip in base.mako

[#562]

The goal of this PR is to centralize the extended tooltip in base mako.
In order to do so, we need to know if for a given layer has an extended tooltip or not.

At the moment, we only have this info in the models, this is why mapservice had to be adapted.