Minor fixes on mapstore templates

* Parse container integer parameters for footer/header
* Check if the html is correct for footer and header.