Introduce persistent objects

* write_object() stores object to disk
* path=dir/name is based on hexadecimal sha1 such that dir=sha1[0..1]
and name=sha1[2..39]