Added namespace for modules so issues with slashes or other characters are resolved.
Added self-caching of module exports.