Added PostClass and converted majority of site functionality to use PostClass