Allow formatting notifications

Fixes #32.