Add types for lifecycle events.

Hehe. I'm fine with that. I think "Notification" is better than "Notifier" though.