Schema additions for apps.

fixes #2102
- Added app_settings, app_fields, app_fields_relations tables