adding some more doc and examples for lifecycle event listeners and subscribers
cleanup event subscriber note
Merge pull request #621 from dbu/event-subscribers

[doc] adding some more doc and examples for lifecycle event listeners and subscribers