Add basic subscription capability.

This closes #8.