Removed path swapping stuff, and use of all now-unused config vars like BROWSE_DIR.