COOPR-568: changes in the provisioner to use TLS when talking to the server

Now I use class instance variables instead of class instantiation.