Make import folder synchronous.

We are doing `folderCopy` in background with `importFolder` action. This caused the UI to hang if the folder was substantially big. We now show a blocking progress dialog for `importFolder`. Make the copy action blocking.

Also, bug(#2249) was reported where, git push was failing when importing big folders. This should probably fix that.

@devoncarew PTAL thanks.