launcher: instance: Split instance loop into multiple functions
launcher: instance: Split instance loop into multiple functions

Partial fix for issue:

https://github.com/01org/ciao/issues/10

The code is much less indented and easier to read now.

Signed-off-by: Mark Ryan <f16215f7acd0bd7fdc465539215bd574c785b062@intel.com>

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