nitdoc: use templates for html output

Full rewriting of nitdoc to extract html templates

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Signed-off-by: Maxime Leroy <maxime.leroy76@gmail.com>