Move CommentLogic to apps package since its logic
Issue #195: add unit test for CommentLogic