Added a lightweight form of getApplicationInstances()

Added a lightweight form of getApplicationInstances() that only makes one REST call instead of many. Made both forms of getApplicationInstances() return nullt if the app is in the STARTED state but has not yet finished staging, instead of throwing an exception in this case.