Merge MainResourceLoader's SubstituteData loading + others into DocumentLoader