Refactor Epub-logic, better TOC support.

This uses the Table of contents instead of spines. On my EPubs this provides a more consistent experience with titles, they are available more often than not.