delete unused views and related methods
change DetailColumn.enum from a dict to a list

- migrate lazily in wrap classmethod
- change all references to it
- change js to consume and produce the new format
Merge pull request #1537 from dimagi/sort-mapping

Migrate DetailColumn.enum to store order