Cosmetic fixes in SearchWindow.
Implement RefactorWindow's functionality, wire it into the main window.