use new ReadOnlyObject object to memoize properties (accessing a couchdb...

...kit seems to rewrap every time)

this cuts calcalation time in half for bihar

depends on https://github.com/dimagi/dimagi-utils/pull/94