Complete rework for composer.

A complete rework and renaming int "Table of contents element", in short
"toc-element". Using the composer specific structure now.
Merge branch 'release/2.0'