Moved state logic from Script to a new MangaManager class which will be used in the future to handle history and downloaded chapters