Compat against Connexions/cnx-epub#23
Bridge resource hash SHA1 to MD5 and allow for an existence lookup.
Use existing archived files entry when inserting resource files.
Fixes TypeError for a non-buffer interface.
Merge pull request #34 from Connexions/issue-16

Addresses #16 and bridges SHA1 to MD5