Added usage of connection/collector in cons tool.

Abstracted runner and type of action in menu builders.

Added an flush handler interface for connection to abstract handling of
flush actions.

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