Add a CLI command that deletes an LDAP config

With this change LDAP configurations can be managed completely from
the command line.
cleanup group admin(s) on deleteGroup
Migrate new app settings to AppFramework

Let's migrate those two new files.
rework getFileSize
small fix
ok; still some bugs that had to be fixed
bugfixes
small fix
disable database migration unit tests for MSSQL
Setting moment locale based on user selection
adding missing email address for principal

* fix #8515
* add mail only if it exists
Add \OC\TempManager to handle creating and cleaning temporary files
Use the TempManager to handle temporary files
Use function outside of loop

Otherwise the function is executed n times which is a lot of overhead
Pass the cached data to the filesystem watcher
also update shared watcher
Fix shared cache getFolderContents
Better reuse of cache data for getFolderContents
Merge pull request #11752 from owncloud/use-function-outside-of-loop

Use function outside of loop
Add type hinting to functions

It's only reasonable to have proper type hinting here which might even help us to catch bugs.