Save newly generated events from pipeline

Save newly created events from pipeline run if pipeline commits.
Refactor trigger manager api wart, move save_event call into add_event
    to make add_event and add_notification symmetric.