Bug 915312 - Part 5: Import sha1 test and invalid len arg test from m-c.
Bug 915312 - Part 6: Add libmozglue.so from tbpl.

push: https://tbpl.mozilla.org/?tree=Try&rev=4097a685ddb3