Added initial imp of settings table. Still needs tested and unit tests.