refactored the template logic
smarty::getTemplate is now instanciated instead of static, since it uses the cache
Merge pull request #11 from cnlpete/development

[3.1] Development