git hooks, plus revamp of trigger mechanism

I'd like to redefine the current mechanism for
event-driven composes. Please begin with doc/event-driven.md
and please provide feedback.