A lightweight pubsub implementation