Migrate new app settings to AppFramework

Let's migrate those two new files.
disable database migration unit tests for MSSQL
Setting moment locale based on user selection
Remove unreachable statement
Load avatar in header via PHP

* fix #7484
* use UID, css, and div instead of span
add avatardiv-shown class to bring back mobile style
Prevent division by zero

Potentially fixes https://github.com/owncloud/core/issues/11742
Merge pull request #11751 from owncloud/fix-unreachable-statement

Remove unreachable statement
Merge pull request #7749 from owncloud/load_avatar_header_via_php

Load avatar in header via PHP
[tx-robot] updated from transifex
Make files non executable

There is not much sense in having these files marked executable, we should avoid that.
Merge pull request #11754 from owncloud/fix-division-null

Prevent division by zero
Merge pull request #11758 from owncloud/fix-permissions

Make files non executable
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
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.
Merge pull request #11735 from owncloud/mssql-migrations-master

disable database migration unit tests for MSSQL
Fix PHPDoc and remove explicit type hint