Defaulting mode and version dropdowns according to preferences. Also sub-sorting mode list by mode name. Part of #16.