Switched from using VCAP_APP_PORT and VCAP_APP_HOST to PORT and a hard coded value of .  This is because the trend seems to be to use PORT instead of VCAP_APP_PORT and because VCAP_APP_HOST is always .