Replace PostAnalyser module with a class

Encapsulate Post#cooked_document as well
Include specs for PostAnalyzer class