Add common functions to work with stages

 * stageWrapper: wraps some code and allow retrying if interactive
                 mode is enabled.
 * printStageMap: Print provided stageMap to console with specified color
 * printCurrentStage: Print specified stage to console
 * getColoredStageView: return colored representation of specified stage

Related-Prod: PROD-22636

Change-Id: I8818cc200dab4d7107eceb6d8dbef006356a9b42
1 file changed