Refactoring, adding templates and UI modules, new EPUB class.