Two things:
- Set up the preferences window to open properly and handle losing focus appropriately.
- Added logic to listen for file system change events; it can handle both directories and files. The callbacks that will trigger re-indexing are not yet implemented.