coisane: Improved reliability of utility functions
coisane: Fixed possible invalid memory access
coisane: Updated some resource strings
coisane: Take dialog instances into account for reference counting
coisane: Fixed compatibility with 64-bit platforms
coisane: Improved initialization of server wizard page
coisane: Improved initialization and free of progress wizard page
coisane: Updated scanner wizard page to use internal list of devices

The list is fetched while the previous progress page is displayed.
This fixes invalid memory access issues and moves blocking calls
to the existing connection and background thread.
coisane: Correctly keep track of dialog window handle
coisane: Renamed background thread functions
coisane: Automatically set focus to current wizard page
strutil: Fixed possible buffer overflow and renamed string functions

String buffer length calculations were off, especially the allocated
memory for MultiByteToWideChar in StringConvAToW.