Add pubsub.go and simple test