Improve message and error handling for file transfer
Better check messages from agent and improve big endian support reusing code now in spice-common.
Avoid some possible minor read buffer overflows handling error details.
Support detail for generic file transfer errors.