add hidden and indent information to the book converter

also refactor identifier generation to a helper, and change
the moodle_chapter.subchapter attribute to be a boolean