ciao-cli: Regroup instances action
ciao-cli: Regroup instances action

Regroup it into one routine and simplify the main flow.

Signed-off-by: Samuel Ortiz <0ba86cb3f08bbb861958e54bd3438887adb4263c@linux.intel.com>

kaccardi/ciao,leoswaldo/ciao,leoswaldo/ciao,mcastelino/ciao,tpepper/ciao,chavafg/ciao,obedmr/ciao,matthewrsj/ciao,erick0z/ciao,01org/ciao,markdryan/ciao,obedmr/ciao,rbradford/ciao,matthewrsj/ciao,matthewrsj/ciao,ciao-project/ciao,leoswaldo/ciao,wcwxyz/ciao,tpepper/ciao,jorgevgut/ciao,chavafg/ciao,markdryan/ciao,erick0z/ciao,kaccardi/ciao,erick0z/ciao,mrkz/ciao,jorgevgut/ciao,wcwxyz/ciao,rbradford/ciao,jorgevgut/ciao,obedmr/ciao,01org/ciao,tpepper/ciao,mrkz/ciao,mcastelino/ciao,mcastelino/ciao,ciao-project/ciao,wcwxyz/ciao,mrkz/ciao