Add ability to peek at inotify events
Some refactoring... though more is needed
More refactoring