Replaced usages of execute of branch with trigger of connection or
execute of collector.

Moved handling of on flush to model transcriber in createConnection.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>