Implementing sha1 handling for filesystem repos. Tests added.