Fixes gh-1570 Cherry-picked from 0960908 and 258c6f1
Both Tomcat and Jetty can now be configured to use SSL via the environment (typically application.properties or application.yml) Closes #1084