Don't double-slash filenames at the root.
Replace either the end of the dir string that isn't preceded by a slash or the slash at the end of the dir string with a slash and the filename.
This prevents the root directory from ending up as two slashes, which breaks files_versions on Windows servers. See #4079 for an explanation.
Added ownCloud backend for external storage

To make it possible to use the short ownCloud URL (without specifying
webdav.php or remote.php), a new backend is available for ownCloud.

The user must specify the host + context path in the "Url" field (which
is mapped to the "host" parameter) and the subdir to mount in the "Root"
field.

This is to prevent confusion because some users forget to append
webdav.php or remote.php to the WebDAV URL.

Fixes #4923
chunked files are assembled into a part file on the target storage followed by an atomic rename operation.
adding oc-mtime handling to chunked upload
LDAP Wizard: do not forget to set display name attributes for user and group, makes Test Connection succeed
Fixed watcher to also update the owner's folder sizes

Note that the root folder size is mandatory for quota calculation.
Fixed filesize issue in watchr test

Added clearstatcache to make sure we get the correct file size after
re-writing into the same file.

This failed on openSUSE 12.3 x86_64
Removed unused method
Added unit tests for shared files watcher

- Added base class for sharing unit tests
- Added unit tests for shared files watched to check for folder size
  propagation
Fixed unit tests for files sharing watcher
Add public API for \OC\Avatar
Remove duplicate getAvatarManager()
Fix a regression (Tags→TagManager)
Added ffmpeg fallback when avconv is not available

On some distros, avconv isn't available yet.
This fix adds a fallback to ffmpeg.
When none is found, no error message is displayed in the console any
more.

Fixes #5745

Also, this now uses exec() instead of shell_exec() to be able to get the
return code.

The binary path found with "which" is now used to prevent further FS
binary lookup when running the commands.

Moved the "-ss" parameter before "-i" for ffmpeg.
Fixed the rebellous space, replaced with a tab
Added JS event for when the user changes the directory

This enables apps to detect directory changes which might be caused by
the user using the browser back button.
Make working en_US.UTF-8 locale a hard requirement
LDAP Wizard: keep Base DN always visible
Fixed undefined variable error when using avconv
DB: Set correct default value for numeric types

Set 0 as default value for columns with numeric data type instead of the
empty string ''. Otherwise the database complains about an invalid
default value for this column.

To reproduce put the following in your ````appinfo/database.xml````:

````
<field>
        <name>modified</name>
        <type>decimal</type>
        <default/>
        <notnull>true</notnull>
        <length>15</length>
</field>
````

See owncloud/mozilla_sync#14