Move require() and auotload() resolve logic into DependencyResolver class