Refactor Page and Post to both have template objects instead of being in a class hierachy.