Reworked the templates system
Added Twig template engine
Fixed documentation and coding style