Moved the ePub maker thread and gui to separate files