Added a publish/subscribe example.

Removed auto publish package and added an example of publish/subscribe.