Use globals for XXXXPopupShown and isXXXXActive variables

Use the `globals` object to store globals  variable like `importKmlPopupShown`, `importWmsShown`,` isMeasureActive`, `isDrawActive`, `isTimeSelectorActive`, `isSwipeActive`.

This PR add also : 
     - add a `ga-tooltip-active` attribute to deactivate tooltip when draw or measure are activated
     - deactivate draw when measure is activated and vice-versa


Test [here](http://mf-geoadmin3.dev.bgdi.ch/dev_useglobals/prod/)