Server code simplification, sendfile

Elimination of redundant command loop code.
File not sent if checksum matches that of file on server.