Implement process lifecycle events, fixes #1534
Test correct event call
Add changelog note
Merge pull request #1545 from mperham/lifecycle_events

Implement process lifecycle events, fixes #1534