COOPR-492: Add ability to configure server to use TLS

Please review.
should be checking for https, not just for https on localhost.  You could also just make CURL_PARAMETERS an env variable that can be set directly by whoever is running it.  That way it will "work" with 2 way auth later since we could set that env to include the required --cert and --cacert arg