Fixed:
Get SiteSettings working
Switch code over to use the settings.

Still to be resolved:
switching the cas server to use when the setting is updated without restarting the app.