Added the sha1 column to the database.
Modified tree-urls-queries to use SHA1 instead of UUIDs.
Fixed the tree-urls table conversion.
Finished porting tree-urls to using sha1 sums.