Port ssl_to_gear changes to the frontend plugins.