Update adapter.php

Modified insertIfNotExist() to support NULL values
add unit test
Also update sqliteadapter
Fix use Sharing Api with calendar

Without this fix it logs this error:
Undefined index: itemSourceName at /opt/local/apache2/htdocs/oc7/core/ajax/share.php#44
I think the itemSourceName is only used with sharing files!
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
Solve bug with touch always return true on /lib/private/files/view.php
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.
Added acceptance tests for enabling apps

This tests whether a user can see navigation entries after enabling
apps. This includes the app's group restriction.

This currently expects that a group "group1" exists until we have code
to auto-generate groups.

This commit also provides a utility function
Page.multiselectSetSelection() to make it possible to select entries
inside a multiselect.
Fix code with previous comments
Reset changes on 3rdparty submodule
Solve bug with touch always return true on /lib/private/files/view.php
Fix code with previous comments
Merge branch 'issue_10674' of github.com:owncloud/core into issue_10674
Use correct language package so the subject is correctly translated

Fix #10847
Fix broken new lines in plain text mail template