Implements path resolution, file loading and dependency (require) scanning.