Refactor lineNumbers into a common module.
Add ancestor boxes to interface.
Implement Rich pagination.
Add basic support for Rich layout.