deprecation fixs in templates, unhardcoding some settings, tweaking (default) ssl settings