[Mac] Only print the base filename instead of full path into the log file
[mac] Update version to 1.4.0
update databse update script
add AUTOINCREMENT for sqlite3 update script
improve db update scripts
[client] Improve file chunking and worktree monitoring.

Linux:
* Improve inotify events handling. Auto monitor a dir once it's created.
* No need to refresh monitor after commit.

Chunking:
* If file size changed while chunking, return failure.
* Use total size of blocks as file size for seafile object.
Include common.h in utils.h.
Fix bug in ntoh64() function.
update version to 1.4.1
fixed a bug in build-msi.py
[http] Remove temp files when upload is canceled.
Merge branch '1.4'