Reorganizing settings code, putting it into its own sub-package.