move smarty3 templates in "tpl/" folder, add util/precompile_smarty.php utility, add precompiled templates