Feature/pubsub

Implemented pubsub for roles.