Fixes bugs with list_application_instances in the nodejs implementation.
Adds web GET interface for 'instances' to list instances.

References #2756.
References #2757.