Add support for debug mode, both at global and job level
Log metering of upload time
Reuse the appId obtained in the result of the deployment call in the cleanup call. This allows to cleanup when no appId was specified in the job config.