Cleanup leaflet templates and fix js for new header and footer

To complete the PR i need to have a ```<div>``` with an ID for the "map tools" (buttons on top of the leaflet maps).

I don't understand why we have two scripts with almost the same code. A further step will be try to understand which applications are using each of the scripts and see if one of them can be removed.