Storing SHA-512 hash for file uploads.

The version list is deduplicated based on this hash and the modification
time, which resolves #59.