Cosmetic improvements to the history dialog

Make the listbox expand as needed, using the same scrollbar/frame
trick we're using for subcategories. Also use a slightly longer
date format. And move the History button in the main dialog to
a better place, and shorten its label, and add a mnemonic.