Refactor main window

This removes all search related code. Search will be implemented
instead as a separate widget.
