Refactor AR and Sample header_table views

Uses widget 'visible' attribute (and WidgetVisibility adapters) to
decide which fields are editable or viewable.