Better handling of EPUB frontmatter generation

Added support for new generate.root.chunk parameter to give better control over chunked output of frontmatter, which should be especially useful for EPUB generation.