Scan window: allow to change sort order on the fly

Move sorting of scan entries into the display part instead of the scan thread,
so that sort order can be changed from within the scan window.  Add keyboard
shortcuts to set sort type and order (ascending/descending). Add status
message to indicate current sort order.
Add configuration file support for sort type and order.