removed commented code
load flavor first since instance depends on them
added a switch for the instance not having an image
load flavors based on the flavor id
append the version number to the keystone path