A wrapper for Node.js' require() with cache invalidation.