instant sync: use wait and notify instead of busy wait
add directory creation sync
rename addFile to addFileEvent
auto connect to make it resistent to network status change
Merge branch 'master' of https://github.com/liangrubo/code_sync

* 'master' of https://github.com/liangrubo/code_sync:
  auto connect to make it resistent to network status change
  rename addFile to addFileEvent
  add directory creation sync
  instant sync: use wait and notify instead of busy wait

Conflicts:
	src/fxmlexample/FileTransferThread.java