Replaced new prereq dialog with autocomplete box.

And other cleanup.