Actually encode console data with SSE.
Introduce pubsub and helper services for event bus.