Learning how to watch directories with Java, and sync remote directories