Add optional user ID parameter for getUseFolder

Conflicts:
	lib/private/server.php
Merge pull request #10774 from owncloud/backport-getUserFolder

Add optional user ID parameter for getUseFolder