Add argument to upload-api:replace if exist
Merge branch 'poet' into 3.0
[net] add initial support for reopening logfile
[scripts] remove obsolete setupmac.sh
Merge pull request #731 from Chilledheart/remove_setupmac

[scripts] remove obsolete setupmac.sh
[README] use svg icon for travis-ci
Merge pull request #735 from Chilledheart/use_svg_icon

[README] use svg icon for travis-ci
[build] prevent bad sed usage under osx
Merge pull request #737 from Chilledheart/fix_sed_osx

[build] prevent bad sed usage under osx
Merge branch '3.0'
Create commits from worktree event queue. (Linux only now)
[client] Remove GC and clean up local blocks after repo is synced.
[client] Get worktree event detail on Windows.
[client] Fix a bug on worktree watching on Linux.
Implement new sync loop, upload part.
[client] Split huge data set to multiple batches for upload.
New sync loop implementation, download part.
[client] Fix repo syncing status display problem.

Should not display "waiting for sync" when a repo is in sync.
SyncInfo->head_commit is only set after checking the server.
But in the new sync loop design, checking with server can happen
after commit.
[client] Fix worktree event handling for large files.
[win] Skip syncing when a file needs to be updated is locked.