Make import folder synchronous.

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