Added num_instances launch option (to API, client, and command-line)

Change-Id: I7ce6f3e78e852dfd0c466f234ac9721c01e1b6ba
Merge "Added num_instances launch option (to API, client, and command-line)" into stable/essex