fix update to remove shares where file doesn't exist on postgres

Without patch, breaks with: Failed to upgrade "files_sharing".
Exception="SQLSTATE[22P02]: Invalid text representation: 7 ERROR:
invalid input syntax for integer: "5,179""

See: https://github.com/owncloud/core/issues/5758

removing unnecessary cruft - no parameter is set, none to pass.

https://github.com/owncloud/core/issues/5758

removing subquery, making more readable

See: https://github.com/owncloud/core/pull/6016#issuecomment-29510979

parameters to sql calls should be arrays

https://github.com/owncloud/core/pull/6016

boosting version to ensure fix gets executed

properly escaping the sql select statement

removing extraneous closing paren.
Refactor update script to class and add unit test
Clean up database before setup the database for testing
Added backticks for Oracle in sharing updater unit test
remove invalid shares with one SQL statement
Fixed chunking and insufficient storage check

- fixed free space detection based on the already uploaded chunks
- now deleting chunks as soon as it is read out before writing it into
  the part file, which reduces the space needed when assembling part
files
Makes #app-navigation a part of app management.
Adds Style changes to app-navigation in core/css/apps.css
Fixed share updater unit test

Now using \OC_DB::insertId() to retrieve the generated ids because
Oracle ignores the passed values.
Fixed share upgrade cleanup tests to use the correct ids
idn_to_ascii is only used if available
general styles for the content area
replace personalblock fieldset with section div in admin and personal settings
replace personalblock fieldset with section class in files apps
replace personalblock fieldset with section class in core user_ apps
remove CSS rules for personalblock, remove it from core
Give storages the option to implement the getById behaviour for View->getPath
Implement getPath for shared files
Fixed user list offset call
Correction: failure on sharing when user ID was prefixed by zero