add "replace" and "upload" functionalities

王权利请求将github/fork/liyakun/master合并到master

Created by: liyakun

This pull request includes new features "replace" and "upload" file in the current repository. The "upload" function check the file name conflict(same name check) in the same repository. The "replace" function check the file content conflict(same content check) for the same file.

replace1 replace2 upload1 upload2

合并请求报告