Refactored settings API and service. Created the tule settings controller and adapted the menu controller to use the settings.