Hoisted metadata methods from PackageManager to DirectoryManager.

Any directory may house a __metadata__ module.