Updated the settings module/table to use a consolidated settings document.

Foundation for a settings optimization and database cleanup.
Closes #208 - consolidated settings into the application_settings table, dropped deprecated tables.
Settings fix.  Updatedb.py will now preserve existing settings in the 1.21 update.