Store @results as a hash so that we only capture the last result for  each individual file.  This eliminates a bunch of empty and misleading  results for files from handling need_sum or need_orig requests.  We only  want to capture the last result where the contents of the file are  handled.
Store @results as a hash so that we only capture the last result for 
each individual file.  This eliminates a bunch of empty and misleading 
results for files from handling need_sum or need_orig requests.  We only 
want to capture the last result where the contents of the file are 
handled.

If ruby >= 1.9 then specify encoding options to the pipes used for 
output capturing.  Otherwise we may end up capturing non-UTF-8 output
and sending it to the server as UTF-8, which causes the server to error
out.

Minor cleanup in lock_file to eliminate a warning about an unused 
variable.


etch/etch,etch/etch,etch/etch,etch/etch,etch/etch