Some improvements about rendering of the pages and more

Now the html files are templates. Some improvements in the config file (more work is needed here, but the idea seems good) and some code for the infrastructure for test cases