Extract book and chapter parser from content element book.

The content element book switched between two templates for book and
chapter. Now is use one basic template and delegate to delegate to
parse book or chapter.
Refactoring: remove duplicated code.