adding support for deploying to cloud foundry, using VCAP_SERVICES environment variable to obtain mongodb credentials/connection url