WIP Refactor run_instance/spawn

Break down scheduling and building instances into steps to allow for
fine grained retry logic of different steps.  Sets up the use of
an orchestration library at a later time.

Very rough right now, just laying a foundation

part of bp query-scheduler

Change-Id: I52406d2ce32b26ef67737e908415b06e3cc0ad87