Changes insert and update to upsert for all DbObjects
Rework of AdvancedSettingsView and Settings resource
Fixes a minor bug in the Validator.js. Url's were validated as mail.
Reversed the upsert to an insert and update, due to exceptions.
Improved the auto rotation of images.