Support for selecting one item from a list of items

When selecting a mod with several conflicting subdependencies, the GUI will ask the user to select one and continue, the CLI does not do this. This adds support for selecting one item from a list of items, and supports a preselected default.

This is part of the old PR at https://github.com/KSP-CKAN/CKAN/pull/586.