Allow multiple beforeNotify handlers to be added, update documentation.