Save parameters passed to the downstream job as JSON
Save parameters passed to the downstream job as JSON

Instead of saving the downstream job parameters in a file format
understandable by Jenkins, we save them encoded as JSON.

This commit also adds the following updates:

* Code cleanup
* Get the Jenkins console log via file download from the Jenkins server

ionutbalutoiu/mesos-jenkins,ionutbalutoiu/mesos-jenkins