Add notification support

`function notify`? The name seems redundant, but I've started putting them in, at least in public methods, because they show up in stack traces and profiling, etc.