fixed codesmells and template support for twig/smarty
added htaccess and updated hooks and filters