Use the type enumeration in struct work_queue_file.
Modified cache name of each file to be based on local namespace.
Fixes bug which caused collision between cached files with the same remote name.
Fixed bug in detection of missing files on output transfer.
Changed cache name from internal fileid to buffer checksum.
Merge branch 'work-queue-cache-name' of git://github.com/dthain/cctools into dthain-work-queue-cache-name

Addresses issue #184 by making the cached name based upon the local file name,
with necessary variations for each file type.