Debug template

now can output debug template with ANSI color , check /test/debug.php for sample output.