Change printf() calls to proper Shadow log() calls in transport-utp
Add check to return value of UTP_Write() and throw an error if it fails
Move some socket-creation code around in server and client for clarity