Generate notifications with lambdas

Fixes #47. Relies on #50.