Add settings file, migrate most .cgi references, migrate secure salt to settings file