Node.js variation on the publish/subscribe pattern.