Adds a pre-deploy hook passing the name of the app and the image. The hook allows plugins to setup external resources (such as databases) and modify the image (running pre-deployment script from the app) before the application is deployed by dokku.
`$http_upgrade` is supposed to be a variable set by nginx. It was now substituted by nothing.