Dont throw an error when calling $server->getUserFolder when logged out

Conflicts:
	lib/private/server.php
Verify whether the URL is valid

Required for https://github.com/owncloud/mail/pull/100#issuecomment-50266017

@karlitschek Backport for stable6 and stable7 requested.
Set version AFTER a successful update

If an app upgrade failed, the core version will not be increased either
in the database. This will re-display the update page and make it
possible to redo the apps upgrade.

Note that any core repair routine must take into account that an update
might need to be redone again even though the core's DB state is already
the one of the new version.
improve look of search on mobile, save space in top bar
Dont try to execute jobs that no longer exist
update getID3 library & add autoload
enable input grouping also outside of log in screen
ownCloud users are exported as address book
generate copy of sqlite database file in data directory
Merge pull request #9948 from owncloud/backport-9904-stable7

Dont throw an error when calling $server->getUserFolder when logged out
add OCS api call to set expire date for link shares
adjust error code
Fix enforced share expiration date to be based on share time
remove MssqlBundle