Everything starts up together.  Using FileLock in search cache.
Integrated and tested parts of search.  Moved fix_perms and fix_dir_perms into common module.
Fixed changing directory permissions.
Cached searching appears to work.