Major refactoring of record view processing, esp for handling repeat field groups.

Still needs tests and logic for repeat group rendering and response handling.
Fix knock-on error in test_entitydefauledit caused by change in entity type handling
Clear out some dead code
Rework view handling for repeated fields, new test case; still need tests for add/remove field
Update rendering of repeated field groups for add/remove options
Update entity edit logic to preserve entrity fields not rendered in form (needs test)
Fix ill-conceived entity edit logic to preserve entrity fields not rendered in form (still needs test)
Fix up problems with field update logic; start on add field logic
Initial attempt at add field logic (needs testing); uncovered problem in save record view logic
Initial cut of add/remove field logic; needs some tweaks and tests