Optimized the local and remote file comparisons
Rewrote core sync functionality. The local file watcher is almost ready.