Refactor validateSetting to use validaton dict
Refactor validateSetting to use validaton dict

Instead of having a function with a bunch of if statements, there is now
a dict in settings (SETTING_VALIDATIONS) that contains lambdas to
validate the settings

ollien/Timpani,ollien/Timpani,ollien/Timpani