Refactored PortalSettings and added registration settings as a new class to it
Replacing various settings coercions with new settings object
DNN-6100 Partially fix issue in DictionaryExtensions to handle boolean values.