munge app instance/index into $VCAP_APPLICATION

Signed-off-by: Simon Leung <leungs@us.ibm.com>
deps

Signed-off-by: Simon Leung <leungs@us.ibm.com>