willLeave and willChangeContext events
Merge pull request #89 from ef4/new-events

willLeave and willChangeContext events