Replaced usage of connection with usage of branch in plot tool.

Added support of branch usage in infrastructure of model.

NOTICE: PROJECT NOT COMPILABLE.

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