Splitted template

I just have splitted the template into different template files. They all are in the directory `inst/templates`. 

The principal template is named `main.brew`. It outputs the structure of the html document and calls the others templates.

Moreover, less unnecessary code is generated and indentation in the output should be better.