use smarty3 as default template engine. add pluggable template system
fix internal
remove "internal" templates, use "tpl/" folder for smarty3 templates,
move smarty3 templates in "tpl/" folder, add util/precompile_smarty.php utility, add precompiled templates
Merge pull request #50 from fabrixxm/newtemplatesystem

New template system