Updated examples to use EventDispatcher.

Signed-off-by: Lanny McNie <lanny@gskinner.com>