Support JSON files in require(). Support module IDs with extensions.