Makes twig an extension from APP also fixes some templating problems.