Several fixes; now barely works (but new searches are still broken)
Fixed most bugs and removed old advanced search

Now it should mostly work. There are no known bugs (but there are
certainly many unknown ones).