Extracts pubsub to a separate module. Refactors posts and comments routes to use redis pubsub instead of socket connections directly.