implement update_action and change the context menu's upload to update

@lins05 especially this part https://github.com/haiwen/seafile-client/pull/294/files#diff-daf41ea36ef5d35333d1094a8b9bec27R424