Introduced eventNotification attribute in Envelope model

Introduced eventNotification attribute in Envelope model. Enables API callbacks mentioned in #1.