add rake to Gemfile
use cf-app-utils gem to extract credentials from VCAP_SERVICES environment variable.