Add a global state entry for the current template
Adapt new map API from the backend.

We now honour the fact that Backend::Map is a subclass of
TiledTmx::Map.
Open a dialog window when clicking a templated event on the map.

The dialog doesn’t do anything useful yet.