Refactoring module.config.php, create LogFactory and template_map