Import of bookmark-folder-search code and tests.