thread.php and listposts.php templatized. A few useless pages removed.