A simple pub/sub implementation as an express middleware