winsane: Improved error handling during socket reads
winsane: Fixed indentation to fit overall code style
winsane: Fixed possible invalid memory access
winsane: Split GetDevices into FetchDevices and GetDevices

Improve error handling and seperate API functions.
winsane: Split FetchOptions into FetchOptions and GetOptions

Improve error handling and seperate API functions.