Seperated SearchTree into unique methods for each file type (.js, images, etc) and added functionality to avoid selflinks