This allows us to also actually check the sha1 hash using these routines. Needed for the "fsck" thing.
New syntax: "cat-file -t <sha1>" shows the tag, while "cat-file <tag> <sha1>" outputs the file contents after checking that the supplied tag matches.