Refactor settings code
Show all settings in /showtf (closes #193)