Move cf api call to deploy.sh

This allows the build to work, even if the deploy will fail due to https://github.com/cloudfoundry/cli/issues/201