cpeanup and spit html generation into own package - time template generation - wrap pages in html/head/body - cleanup server and move logic there