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
CRON call ends in null exception


[error] 4461#0: *186285 FastCGI sent in stderr: "PHP message
: PHP Fatal error:  Call to a member function execute() on null in /var/www/ownc
loud/cron.php on line 125" while reading response header from upstream, client:
217.13.183.252, server: cloud.mycloud.com, request: "GET /cron.php HTTP/1.1", upstre
am: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cloud.mycloud.com", referrer: "
https://cloud.mycloud.com/"
Update cron.php
Allow specifying the item source in unshareFromSelf().
Log unsuccessful temp file creation and return false
Only load personal external storages for allowed backends
add utf8 folder test
Fixed file list sorting

Now using a natural sort algorithm that is more consistent between JS
and PHP (although not perfect in some corner cases)

- added OC.Util.naturalSortComparator that uses the same algo that was
  used for the user list
- changed user list and files list to use OC.Util.naturalSortComparator
- removed toLowerCase() and changed the comparator to use
  String.localeCompare()
- added unit tests
- added OC_NaturalSort that is used by OCP\Util::naturalSortCompare()
Fixed sort algo for additional cases
Remove no longer existing files from the cache when scanning external storage
improve logo flexibility to fix wide custom logo alignment, fix #9339
Warn user on resetting passwords via occ when encryption is enabled
Adding type to favicon
Add unit tests for new unshareFromSelf() functionality.
Remove different URL for EE

This can now be achieved by setting `appstoreenabled` to `false` in config.php
add select2 to app specific thirdparty