change ConfigurationManager.AppSettings back to System.Environment.GetEnvironmentVariable because Kudu.exe doesn't have access to the same app settings as w3wp.exe
handling getting 403 in Ajax calls from JS by displaying an error and asking the user to refresh the page. Fixes #1146