Restructured the files chapter wise, centralized url_handling