This adds basic support for situations where there is a package.json with a "main" field. That "main" module is used as the code that is loaded when the package folder is required.