Add a method to generate a Content from binary data
This lets us generate Content objects directly from a bytestring, with the proper set of hashes auto-generated from the contents.
Test Plan
added tox tests
Migrated from D2738 (view on Phabricator)