resurrection of sofabed

depends on https://github.com/dimagi/commcare-hq/pull/2886