major refactor of settings

refactored settings and reduced code significantly.
Also added filters and actions to allow for add-on to include their own
settings tab on the settings page