Slowly de-couchifying the persistence layer.

Moved some couch-specific object construction into an inflate() method
in the couch adapter, where it belongs.