Added support of branch usage in infrastructure of several commands.

NOTICE: PROJECT NOT COMPILABLE.

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