switch the cache and text index to use file locking so they can be used by different processes too. hook into turbogears' close_on_shutdown to make sure all the branch views close their files to prevent corruption. this should make it okay to have a bunch of branches share a single cache folder.