Replace VMC_APP_HOST env variables with VCAP_APP_HOST
add a private api for service gateway to update handles