Remove the pubsub-related stuff from the main branch

as it is unused code anyway.