sloppy match on hash for resoruces

Allow resource retrieval by either sha1 or md5