Added hashing and first steps of adding.

db-add tool now hashes the file, generates metadata and hashes the metadata, then calculates the file locations.
Added UUID to libcommon.