changes to firsttime UI and functionality

2 background workers added to do local and online syncing
code added to  make program wait till file is completely loaded

here this section
+                while (!isFileDownloaded[count - 1]) { };
makes the loop wait till the file has been totally loaded