Add dependency for mocker.
Replace gross post rendering code with much nicer, more testable code.