LDAP: fix background job, resolves #3528
backport oracle related changes, mostly comments, but also setup related fixes
call expire function before writing the new version to make sure to have enough free space
it is enough to call the expire function once
also expire versions on rename, to update the history more regularly
construct the foother in defaults.php so that we use always the same footer
check for updates only in the community edition
move javascript variables 'oc_current_user' and 'oc_requesttoken' to js.js - fixes #3853
fix typo in comment
adjust comments
lib/defaults.php should only contain the default strings and read the other strings directly from the theme
remove unneeded if condition
make mail footer aware of different themes
logo claim added
add logo claim to defaults.php
PHP Strict standards:  Non-static method OC_Defaults::themeExist() should not be called statically
fix some var names according to our style guide
continue cleaning-up old versions if availableSpace=0. It's not necessary but gives us some additional free space, especially in the case of a hard quota
fix array access and change variable names according to the coding style
Overwrite host and webroot when forcessl is enabled

This patch enables the use of forcessl together with a multiple domains
reverse SSL proxy (owncloud/core#1099) which have different hostname
and webroot for http and https access. The code assumes that the ssl
proxy (https) hostname and webroot is configured via overwritehost and
overwritewebroot.