test: add a public domain SHA1 implementation.
Tweak SHA1 implementation to build under C90.
test: use sha1 to verify binary blobs, also include track info in regression tests.