Case list/detail page redesign (revert revert)

Original PR is here: #4553 (with discussion).
This reverts dimagi/commcare-hq#4574 (which reverted #4553).