First implementation of expand/contract. Slightly rough.
Introduced inline entity concept
Merge branch 'inline_entity_tiles' into partograph_trials