Don't set Content-Length header if size is unknown
fix first time encryption after app was enabled
added OC_DB::isError and logging
fixed error rising from fetchRow
improved test
- fixed testPermanentDeleteFile sometimes failed
- speed optimization
- reformat code
added users for tests
reformat code to meet coding guidelines
[tx-robot] updated from transifex
added check by numRows()
changed to public api where it was possible
reformat code to comply with the coding guidelines
Merge branch 'master' into file_encryption_tests
Merge pull request #3496 from owncloud/file_encryption_tests

improved tests for files_encryption
Merge pull request #3481 from owncloud/firsttime_enc

fix first time encryption after app was enabled
Merge branch 'master' into file_encryption_util_is_error

Conflicts:
	apps/files_encryption/lib/util.php
fix https://github.com/owncloud/core/issues/3320
add event.preventDefault to undelete function
Merge pull request #3412 from owncloud/fix_2013

Don't set Content-Length header if size is unknown
Merge pull request #3495 from owncloud/file_encryption_util_is_error

added OC_DB::isError and logging for #3486
Merge pull request #3506 from owncloud/fix_3320

fix https://github.com/owncloud/core/issues/3320
fix migration from old to new encryption
make legacyDecrypt() private als always call legacyBlockDecrypt() from other classes
legacyBlockDecryprt() needs to be public