Resolve [JENKINS-25721] user-data mangling in spot instance slaves breaks cloudinit

This maintains backward compatibility while alowing having a scrip in the user-data, where certain fields are replaced by JENKINS_URL and SLAVE_NAME

There are two modes of operation - the backwards compatible way and the cloud-init based way.