Set up Twig_Environment at after_setup_theme priority 9
Autoescape html
Turn off cache if debug and not WP-CLI (since it uses cache to compile)