[client] Fix a bug in multi-part upload for large file sets.
Update client version to 3.1.7.
[server] allow create tmp files through api

Seafile server doesn't allow create new files with names
like 'doc.tmp'. But when a user mounts his seafile account
through webdav, some program would not work properly because it
may try to create tmp files.

For this reason, we remove the aformentioned restriction. However,
seafile desktop client would still ignore those tmp files when syncing.
Merge pull request #886 from haiwen/allow-create-tmp-files-on-server

[server] allow create tmp files through api
set content-type as application/json for upload-aj response
[scripts] fix media/custom in major upgrade script

This step is already included in the minor upgrade script, but not
in the major upgrade script.
Merge pull request #887 from haiwen/copy-custom-on-upgrade

[scripts] fix media/custom in major upgrade script
[server] Fix a bug in displaying deleted files in trash.

How to reproduce:
1. Find a repo that's updated a few days ago
2. Set the history limit to 1 day
3. Delete one file in the repo
4. Enter trash, the deleted file can't be displayed
[server] Add clean trash feature.
[doc] Rename Chinese tutorial name to English.
show mtime and not list encrypted repo for fuse
Improve logging in wt-monitor-macos
Fix a bug in wt-monitor-macos.c
Remove unused share manager in daemon
[mac] Add kFSEventStreamCreateFlagWatchRoot and handle it
Merge pull request #903 from haiwen/mac-fix

[mac] Add kFSEventStreamCreateFlagWatchRoot and handle it
Initial support of readonly sync
* Change clone/download interface to include more_info
* Support is_readonly property in clone manager and repo manager
* Do not listen to worktree changes for readonly repo

Todo

* Do not scan worktree for readonly repo in startup
* Change checkout behavire for readonly repo
[client] Fix some bugs in readonly repo support.
Update client version to 3.1.8.
[client] Add http transfer manager and implement check head commit.