Adds EventSource trait.

Adds EventSource companion object.