Initialize an event source when we start using it, not in the constructor
Add event source to the public api
Use the public api to get event sources
Explicitly cast id and validate type
Better phpdoc and method naming
Merge pull request #10739 from owncloud/eventsource-public

Add EventSource to the public API