A small class that allows to subscribe/unsubscribe actions and publish messages to them.