Refactor lineNumbers into a common module.
Refactor pagination to allow rich layout.
Separate interface-independent constants.
Add user data to spans.
Separate internal plain Paragraph/ParagraphLayout.