Full review of the PHP stuff

- new library file
- review and corrections of the config file
- moving the global JS to PHP to have dynamic version number
adding a comment in the htaccess
corrections in website's pages
regeneration of common public files
regeneration of website file