Rewrite file upload
[file upload] improved ui/interaction, rm unused files
fixed 'path' bug for file upload, rewrite file update, rm unused files
[repo] using ajax to update commit msg, fixed 'wrong head' bug for file update