Reduce complexity of Post - introduce a PostAnalyzer class

Please refer to this closed PR https://github.com/discourse/discourse/pull/936 - Resubmitting with better specs for PostAnalyzer cc/ @eviltrout