Added infrastructure to support native modules and foundation for require(...) method within background threads.