Communication Pattern Logic: Epistemic and Topological Views