COOPR 542: Add ability to configure UI to use TLS

SSL/TLS implemented for coopr-ui.
Don't use negative matching. Use `-n` instead of the inverse of `-z` and always wrap your variables in braces.