initial port over of tools from epubcheck repo