add html templates
fix minor cookie bug

also added format_time() method in BlogPost class