Merge pull request #9004 from owncloud/cleanup-storages

Added check and cleanup for storage/filecache
Revert "Merge pull request #8998 from macjohnny/master"

This reverts commit 482eded8b31b257dfed7761c7cb43f35ddcd3408, reversing
changes made to 354cace14ae01e7ff34af3c8a4a3335b89596da3.
Add support for repair step classes

This also makes it possible to unit test each repair step class
individually
Added RepairStep interface and default repair step lists

The updater is using "before update" repair steps and "regular" repair
steps.
The "regular" repair steps are also used by the CLI tool.

Currently no steps exist but can be added later in the static methods in
the \OC\Repair class.

Added unit test to test messaging, error and exception cases.
Fixed instanceof to use interface instead of class
Merge pull request #8968 from owncloud/scanner-parent-repair

Repair broken parent link in the scanner
Added max heartbeat interval to prevent integer overflow

When using big session timeout values, the interval value might
overflow and cause the setInterval() call to ping the server in a loop
without any delay.

This fix adds a maximum ping interval of 24 hours.

Forward port of 00ec5fc1935c946e846a8ff28491e5b5b017b3d7 from stable6.
Added unit tests for heartbeat interval min/max values
Inline $port expression, getting rid of $port variable.
Extract common variables of $connectionParams.
Move check for : to where it belongs, getting rid of $socket = false;
Move getValue() to where required. This actually is not required "global data".
No need to check the port number as this will fail anyway.
Rename variable to indicate that it can be port and socket.
Don't specify host when using a socket.
some strings to localize external mount api responses. fix #8094
drastic speedup for nested ldap groups

add a function getUserGroupIds for retrieving group ids instead of group objects. this significantly improves performance when using many (nested) groups.

Changes a function call in getUserGroups to only retrieve group ids instead of objects.
this change significantly improves performance when using owncloud with many groups, e.g. nested ldap hierarchy (1.2.840.113556.1.4.1941), since getUserGroups gets called in oc_share::getItems, which is needed for every page request.
in my particular case, it took more than 10s to load the calendar page and more than 6s to load the file page.
this was in an environment with 100 user groups (nested) per user. The performance was bad due to the following call stack:
self::getManager()->getUserGroups($user)
  - getGroupObject() (executed for every group!)
     - groupExists() (resulting in many ldap-requests)
since the groups are loaded from ldap, it is unnecessary to check whether the group exists or not.
Update preseed-config.php
fix some minor issues
Merge pull request #9017 from owncloud/maxheartbeatinterval

Added max heartbeat interval to prevent integer overflow