export ROOT_URL

parse $VCAP_APPLICATION with Ruby and use the first value in application_uris