Add Publisher class.

Added a simple pub/sub system through the Publisher class.