Added support for passing a test callback to solve_and_download_impls

This is needed to implement the test button in the GUI's bug report
dialog.
Moved get_selections_gui to its own file