Book matching during device connection:
1) add some debugging output
2) add some user feedback that it is happening by changing the status bar and setting a wait cursor.
3) make the book matching during device connection pseudo-multithread by processing GUI events during matching. In particular, this prevents the OS from deciding that calibre has stopped responding.