Update the domain class Content and TextSegment.

Add field dataIndex to TextSegment.
Add hasMany text segment relation to Content.
Save user enter content to text segment.