Support Pub/Sub

Refs #2.