Debug with JS, some html5 and CSS fixes
All the handling of the debug states is now done with Javascript instead
of a mix of PHP.
This is the first stip to a full HTML5 app.

We are now using html5 tags like header, footer,main etc

Minor design fixes.