owncloud: fix session cookie again.

Some load balancers may add more cookies, and we would pick the wrong
one.  So keep all the cookies.
If we already read a session cookie, don't parse more cookie as they are
not session cookie.
Allow to configure the timeout in the config
WIP: rename folders
Compile the header with a C++ compiler

template is a keyword in C++
avoid double free
fix some issues while moving.  Now it works in simple cases
Make it work when renaming a directory and a subdirectory at the same
time
remove wrong comments
Do not abort when move fail
Automatically creates the destination folder if it does not exist
Do not issue a rename when the file was modified localy
Fix renaming folder when a file was modified by another client
Fix crash in owncloud_mkdir

ne_simple_request destroy the request, we cannot access the error code
after it.
Also report the error for the other node in case of error
Report error to the callback in mkdir and rename
In case of error dirring a rename, mark the source as updated

That way, the file will be saved in the DB again, and the next try, it
will retry to rename
Fix removing of folder when the folder is locked on windows.

When the folder is locked on windows, rmdir fails and the folmder is not
removed.  But on the next sync, one should try to remove that folder again, and
not upload it to the server as we did before.

There was two problems:

1- The removed folder is still in the DB, so when csync_update read from
DB, for the remote, it still finds it.  Fix that by storing an empty MD5
for directories that should have been deleted.

2- The folder is likely to be modified since its contents are gone.
Which means next sync will try to sync it back to the server.
Fix that by refreshing the mtime in the tree
Progress database:

Remember about errors, and don't retry if there is more than 3 errors
Do not fetch folder id after propagation.

Delay that for the next sync.
Fix blacklist with renamed files

When renaming blacklisted files, we still need to find the other node to
mark the error