cherry picked first from bb_refactor
new behaving tests
more behaving tests
refactored table view
last behave tests, finish table refactor
actually de-merge elastic from api
change name: to path_segment: