Rewrite single.php from scratch, other improvements.