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

We should set up certificate creds when load templates on server in TLS mode.
Environment variable CERT_PARAMETER  is created in the coopr.sh script.