Use a wrapper class to represent blobs, rather than plain str.

This allows us to centralize the logic to compute blobrefs in one spot,
and also fixes the earlier limitation of the put_multi method where all
blobs had to have the same hash function.
Add a LICENSE file.