checkpoint: add check() to globwatch, and it sorta works.
clean up.
make filewatcher into a class.
fix tests.