Update adapter.php

Modified insertIfNotExist() to support NULL values
add unit test
Also update sqliteadapter
Remove special case for css in OC.filePath
improve logo flexibility to fix wide custom logo alignment, fix #9339
Libreoffice config folder needs to be set

In order to avoid conflicts between multiple instances installed on one server, it's required to define a LibreOffice configuration folder per instance.

Just like with my PR for the documents app (https://github.com/owncloud/documents/pull/353), I propose to use /tmp/owncloud-instanceid
Initialize an event source when we start using it, not in the constructor
Add event source to the public api
Use the public api to get event sources
env:UserInstallation was already there in master

My changes were made against stable7 and I merged them to the file in master, so this version is now the properly merged file for master.
I'm just adding `owncloud-<instanceid>` to the path where temp files are stored.
Use correct language package so the subject is correctly translated

Fix #10847
Fix broken new lines in plain text mail template
Fixed scrollto for search results

Now passing the "scrollto" URL argument to the file list class which
will also automatically scroll and highlight the matching element.

This code is triggered by the search box when in a different folder and
also by the activity app.
Scroll to new file/folder after adding

When creating a new file from the menu, the list now scrolls to that
file.
Explicitly cast id and validate type
Better phpdoc and method naming
fix BadRequest error if CONTENT_LENGTH not set

If client does not send content length header on webdav upload (e.g. because the content comes from a stream and its length is not predictable) the put() method should not try to compare the content length value with the actually amount of received data, because this will always fail and results in a BadRequest exception. So the check will only be performed if $_SERVER['CONTENT_LENGTH'] is set.
add / to url to match route
Initial work on shorter links
Use a route instead of s.php and convert tokens asap